package com.tjetc.service;

import com.github.pagehelper.PageInfo;
import com.tjetc.domain.Admin;
import com.tjetc.vo.Result;

public interface AdminService{


    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);


    PageInfo<Admin> selAll(String username, Integer curPage, Integer pageSize);

    Integer delById(Integer id);

    Integer update(Admin admin);

    Integer add(Admin admin);
    Result login(Admin admin);

    Result getMyDetails(Integer id);

    Result updateAdminDetails(Admin admin,String Opassword);
}
